package com.ny.dto;

import lombok.Data;
import javax.validation.constraints.NotNull;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import io.swagger.annotations.ApiModelProperty;

/**
 * 课程表信息DTO
 *
 * @author MSI-NB
 * @date 2025-03-08 13:14:38
 */
@Data
public class CourseScheduleDTO {

    /**
     * 课程表ID
     */
    @NotNull(groups = { UpdateGroup.class, DeleteGroup.class }, message = "课程表ID不能为空")
    @ApiModelProperty(value = "课程表ID")
    private Integer scheduleId;

    /**
     * 课程ID
     */
    @NotNull(groups = { CreateGroup.class }, message = "课程ID不能为空")
    @ApiModelProperty(value = "课程ID")
    private Integer courseId;

    /**
     * 安排日期
     */
    @NotNull(groups = { CreateGroup.class }, message = "安排日期不能为空")
    @ApiModelProperty(value = "安排日期")
    private Date scheduleDate;

    /**
     * 开始时间
     */
    @NotBlank(groups = { CreateGroup.class }, message = "开始时间不能为空")
    @ApiModelProperty(value = "开始时间")
    private String startTime;

    /**
     * 结束时间
     */
    @NotBlank(groups = { CreateGroup.class }, message = "结束时间不能为空")
    @ApiModelProperty(value = "结束时间")
    private String endTime;
}
